package com.wusn.dubbo.demo.consumer;

import com.wusn.dubbo.demo.provider.Provider;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class ConsumerImpl implements Consumer{

    @DubboReference
    private Provider provider;

    @Override
    public String getHello(String name) {
        return provider.sayHello(name);
    }

}
